package zld369504.tw.m_team.api;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.io.IOException;

import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Response;

public interface MTeamHttpsApi {

    public void init(Context context);

    void login(String username, String password, Callback callback);

    Response login(String username, String password) throws IOException;

    public void getMainPage(Callback callback);

    @NonNull
    public Response getMainPage() throws IOException;

    public void getGeneralAdultMovieList(Callback callback);

    public void getTorrentDetailInfo(int torrentId, Callback callback);

    public void getComprehensiveTorrentsList(Callback callback);

    public void getFourKList(Callback callback);

    public void getBookmarksTorrentList(int type, Callback callback);

    public OkHttpClient getClient();

    @Nullable
    Response verify(String verifyUrl) throws IOException;

    Response getPersonalInformation(int userId) throws IOException;
}
